<template>
  <router-view />
</template>
<script lang="ts">
import { useSettingBasicStore } from '@/store/setting';
import { message } from 'ant-design-vue';
import { defineComponent } from 'vue';
import { useRoute } from 'vue-router';
export default defineComponent({
  components: {},
  setup() {
    const route = useRoute();
    const { setQuestId, queryDetails } = useSettingBasicStore();
    const queId = route.query.queId as string | undefined;

    if (queId) {
      setQuestId(queId);
      queryDetails(queId);
    } else {
      message.error('请返回并刷新重试！');
    }
    return {};
  },
});
</script>
<style lang="less" scoped></style>
